#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QTimer>

class MyButton;
class ImageButton;
class PromptWidget;
class DifBtn;
class BackBtn;

class MainWidget : public QWidget
{
    Q_OBJECT
public:
    explicit MainWidget(QWidget *parent = 0);
    ~MainWidget();
    void paintEvent(QPaintEvent *);
    void ShowImageBtn(bool bshow);
    void ShowDifBtnAni();
    void ShowMainBtnAni();
    void Unlock(int l);
    void ShowContinueBtn();
    virtual void mousePressEvent(QMouseEvent *);

    MyButton            *m_continueBtn;
    MyButton            *m_playBtn;
    ImageButton         *m_statisticsBtn;
    ImageButton         *m_quitBtn;
    ImageButton         *m_setBtn;
    ImageButton         *m_infoBtn;
    PromptWidget        *m_promptWidget;

    DifBtn              *m_freshmanBtn;
    DifBtn              *m_normalBtn;
    DifBtn              *m_masterBtn;
    DifBtn              *m_biggunBtn;

    BackBtn             *m_backBtn;
signals:
    void playgame();
    void maintoStatis();
    void AboutToM();
    void mtos();
    void continuegame();
public slots:
    void conti();
    void play();
    void statistics();
//    void help();
    void quit();
    void promptback(int i);

    void freshman();
    void general();
    void master();
    void biggun();

    void DiftoMain();
    void mainanifinish();
    void mainanifinishSB();//sb  show back btn
    void AboutToMain();
    void MainToSet();
};

#endif // MAINWIDGET_H
